<% content_tag_for(:li,item) do %>
  <div>
    <span><%=link_to image_tag("/images/proimages/"+(item.product.main_image && item.product.main_image.name ? item.product.main_image.name.gsub(".","_s."):"noimage.png")),product_path(item.product_id) %></span>
  <%= link_to truncate(item.product.name,:length=>25), product_path(item.product_id) %></div>
  <b><%= item.amount %></b>&nbsp;X&nbsp;<%= item.price %>&nbsp;=&nbsp;<b class="redcolor"><%= number_to_currency item.price * item.amount,:unit=>"￥",:precision => 2 %></b>
  <%= remove_product_link("减一",item) %>
<% end %>